package com.woniuxy.mapper;

import com.woniuxy.entity.Appointment;
import com.woniuxy.entity.AppointmentExample;

import java.util.List;
import java.util.Map;

import com.woniuxy.vo.AppointmentVO;
import org.apache.ibatis.annotations.Param;

public interface AppointmentMapper {
    long countByExample(AppointmentExample example);

    int deleteByExample(AppointmentExample example);

    int deleteByPrimaryKey(Integer appointmentId);

    int insert(Appointment record);

    int insertSelective(Appointment record);

    List<Appointment> selectByExample(AppointmentExample example);

    Appointment selectByPrimaryKey(Integer appointmentId);

    int updateByExampleSelective(@Param("record") Appointment record, @Param("example") AppointmentExample example);

    int updateByExample(@Param("record") Appointment record, @Param("example") AppointmentExample example);

    int updateByPrimaryKeySelective(Appointment record);

    int updateByPrimaryKey(Appointment record);

    //条件分页
    List<AppointmentVO> selectAppoinmentByExample(Map<String, Object> map);

    //统计总数
    int countAppointmentByExample(Map<String, Object> map);
}